package com.bjdd.jdy.ui.feedback;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.entity.FeedBack;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/9.
 */

public class FeedBackModel implements FeedBackContract.Model{
    @Override
    public Observable<BaseResult<String>> feedBack(String token, FeedBack feedBack, String content, String userId) {
        return Api.getInstance().service
                .feedback(token,feedBack,content,userId)
                .compose(RxSchedulers.io_main());
    }
}
